#include "interval.h"

int main()
{
	interval<double> I1(2, 1);
	interval<double> U1(5, 1);

	interval<double> I2(2, 2);
	interval<double> U2(5, 2);

	interval<double> I3(2, 4);
	interval<double> U3(5, 2);

	cout << "P1: " << I1 * U1 << endl;
	cout << "R1: " << U1 / I1 << endl;
	cout << "U1: "; 
	U1.print_absolute();
	U1.print_percentage();
	cout << "I1: ";
	I1.print_absolute();
	I1.print_percentage();
	cout << endl << endl;

	cout << "P2: " << I2 * U2 << endl;
	cout << "R2: " << U2 / I2 << endl << endl;

	cout << "P3: " << I3 * U3 << endl;
	cout << "R3: " << U3 / I3 << endl << endl;




	cout << endl << endl;
	system("pause");
	


}